package com.wva.video.domain.dto;

import com.wva.common.constant.PatternConst;
import com.wva.video.constant.UploadConst;
import lombok.Data;

import javax.validation.constraints.*;

/**
 * @Author: hong
 * @Date: 2025/2/9 22:18:11
 */
@Data
public class SetChunkMd5DTO {
    @NotNull
    @Min(value = UploadConst.MIN_CHUNK_NUMBER)
    @Max(value = UploadConst.MAX_CHUNK_NUMBER)
    private String chunkId;

    @NotEmpty
    @Pattern(regexp = PatternConst.MD5)
    private String chunkMd5;

    @NotEmpty
    @Pattern(regexp = PatternConst.MD5)
    private String fileMd5;
}
